<template>
  <div>
     <button @click="goLogin">立即登录</button>
    <br>
     <button @click="loginOut">退出登录</button>
 </div>
</template>

<script>
export default {
  name: '',
  data() { 
    return {

    }
  },
  created() {

  },
  methods:{
      goLogin() {
          this.$router.push('/login')
      },

      loginOut() {
          localStorage.removeItem('token')
          this.$router.push('/')
      }
  },
 }
</script>

<style scoped>
</style>